//
//  GoodCategoryHeader.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/26.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "GoodCategoryHeader.h"
#import "ZMSearchController.h"

#import "BaseNavigationController.h"
@interface GoodCategoryHeader ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIView *bigBgView;
@property (weak, nonatomic) IBOutlet UITextField *textField;


@end

@implementation GoodCategoryHeader

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.bigBgView.backgroundColor = viewBgGrey;
    
    self.bgView.layer.cornerRadius = 18;
    
    self.bgView.layer.masksToBounds = YES;
    
    self.textField.font = MYFONT(16);
    // Initialization code
}



- (IBAction)btnDidTap:(UIButton *)sender {
    
    
    UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc]init];
    
    flowLayout.sectionInset = UIEdgeInsetsMake(0, 15, 10, 15);
    
    flowLayout.minimumLineSpacing = 10;
    
    flowLayout.minimumInteritemSpacing = 10;
    
    ZMSearchController *temp = [[ZMSearchController alloc]initWithCollectionViewLayout:flowLayout];
    
    temp.type = @"3";
    
    BaseNavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:temp];
    
    [self.viewController presentViewController:nav animated:YES completion:nil];
    
    
    
    
}

@end
